﻿<Window x:Class="Startup.Shell.Modules.MainShellModule.MainShell"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:b="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:MainShellModule="clr-namespace:Startup.Shell.Modules.MainShellModule"
        xmlns:Shell="clr-namespace:Startup.Shell"
        xmlns:ClassesModule="clr-namespace:Startup.Shell.Modules.ClassesModule"
        xmlns:ClassEditorModule="clr-namespace:Startup.Shell.Modules.ClassEditorModule"
        xmlns:WindowDesignerModule="clr-namespace:Startup.Shell.Modules.WindowDesignerModule" Title="{Binding Title}" Height="368" Width="534"
        b:DataContext="{x:Static MainShellModule:MainShellViewModel.Designer}"
        DataContext="{x:Static Shell:App.DomainModel}"
        mc:Ignorable="b" WindowState="Maximized">
    
  <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        
        <ToolBar>
            <Button Content="New" Command="{Binding NewProjectCommand}"/>
            <Button Content="Open" Command="{Binding OpenProjectCommand}"/>
            <Button Content="Save" Command="{Binding SaveProjectCommand}"/>
            <Button Content="Save As" Command="{Binding SaveAsProjectCommand}"/>
            <Separator/>
            <Button Content="Generate" Command="{Binding GenerateProjectCommand}"/>
        </ToolBar>
        <TabControl Grid.Row="1">
            <TabItem Header="Classes">
                <ClassesModule:ClassesView DataContext="{Binding ClassesViewModel}"/>
            </TabItem>
            <TabItem Header="Interface">
                <WindowDesignerModule:WindowDesignerView DataContext="{Binding WindowDesignerViewModel}" />
            </TabItem>
        </TabControl>
    </Grid>
</Window>
